package com.ssy.lingxi.after.sale.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 售后换货手工发货
 * @author 伍将
 * @date 2020/12/4
 * @version 2.0.0
 */
@Entity
@Table(schema = "public", name = "as_replace_manual_delivery_goods",
        indexes = {@Index(name = "as_replace_manual_delivery_goods_replace_id_idx", columnList = "replaceId"),
                @Index(name = "as_replace_manual_delivery_goods_delivery_type_idx", columnList = "deliveryType")})
public class ReplaceManualDeliveryGoodsDO implements Serializable {
    private static final long serialVersionUID = -9064408777809721465L;

    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "replace_manual_delivery_goods_seq")
    @SequenceGenerator(sequenceName = "as_replace_manual_delivery_goods_seq", name = "replace_manual_delivery_goods_seq", allocationSize = 1)
    private Long id;

    /**
     * 换货id
     */
    @Column(columnDefinition = "int8")
    private Long replaceId;

    /**
     * 发货类型 0-所有 1-退货 2-换货
     * ReplaceDeliveryGoodsTypeEnum
     */
    @Column(columnDefinition = "int")
    private Integer deliveryType;

    /**
     * 发货地址
     */
    @Column(columnDefinition = "varchar(200)")
    private String deliveryAddress;

    /**
     * 发货时间
     */
    @Column(columnDefinition = "int8")
    private Long deliveryTime;

    /**
     * 物流单号
     */
    @Column(columnDefinition = "varchar(50)")
    private String logisticsOrderNo;

    /**
     * 物流公司
     */
    @Column(columnDefinition = "varchar(50)")
    private String logisticsName;

    /**
     * 内部状态 1-未确认退货发货 2-已确认退货发货 3-已确认退货收货 4-确认退货回单
     */
    @Column(columnDefinition = "int")
    private Integer status;

    /**
     * 创建时间
     */
    @Column(columnDefinition = "int8")
    private Long createTime;

    /**
     * 更新时间
     */
    @Column(columnDefinition = "int8")
    private Long updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getReplaceId() {
        return replaceId;
    }

    public void setReplaceId(Long replaceId) {
        this.replaceId = replaceId;
    }

    public Integer getDeliveryType() {
        return deliveryType;
    }

    public void setDeliveryType(Integer deliveryType) {
        this.deliveryType = deliveryType;
    }

    public String getDeliveryAddress() {
        return deliveryAddress;
    }

    public void setDeliveryAddress(String deliveryAddress) {
        this.deliveryAddress = deliveryAddress;
    }

    public Long getDeliveryTime() {
        return deliveryTime;
    }

    public void setDeliveryTime(Long deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    public String getLogisticsOrderNo() {
        return logisticsOrderNo;
    }

    public void setLogisticsOrderNo(String logisticsOrderNo) {
        this.logisticsOrderNo = logisticsOrderNo;
    }

    public String getLogisticsName() {
        return logisticsName;
    }

    public void setLogisticsName(String logisticsName) {
        this.logisticsName = logisticsName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }
}
